package com.summer.data.config;

import java.util.function.Function;

/**
 * @author ydfqy.com
 *  配置
 */
public class Config {

    private Function<String, String> fieldName2DbName = fieldName -> fieldName;

    private Function<String, String> dbName2FieldName = dbName -> dbName;

    private static Config config = new Config();

    public static Config getConfig() {
        return config;
    }

    private boolean printSql = false;

    public boolean isPrintSql() {
        return printSql;
    }

    public void setPrintSql(boolean printSql) {
        this.printSql = printSql;
    }

    public Function<String, String> getFieldName2DbName() {
        return fieldName2DbName;
    }

    public void setFieldName2DbName(Function<String, String> fieldName2DbName) {
        this.fieldName2DbName = fieldName2DbName;
    }

    public Function<String, String> getDbName2FieldName() {
        return dbName2FieldName;
    }

    public void setDbName2FieldName(Function<String, String> dbName2FieldName) {
        this.dbName2FieldName = dbName2FieldName;
    }
}
